package;
import flash.display.MovieClip;
import flash.Lib;

class Main
{
	//define variables to use in class `main'
	var root:MovieClip;
	
	//new function used to draw square and trace
	function new(current)
	{
		//ref: movieclip variable called `root'
		root = current;
		
		//add new instance of `Deck'
		var deck = new Deck();
		root.addChild(deck);
		
		//add new instance of `Game'
		var game = new Game();
		root.addChild(game);
		
		//add new instance of `Pipe'
		var pipe = new Pipe();
		root.addChild(pipe);
		
		//add new instance of `Cards_A'
		var cards_a = new Cards_A();
		root.addChild(cards_a);
		
		//add new instance of `Cards_B'
		var cards_b = new Cards_B();
		root.addChild(cards_b);
		
		//add new instance of `Hand_A'
		var hand_a = new Hand_A();
		root.addChild(hand_a);
		
		//add new instance of `Hand_B'
		var hand_b = new Hand_B();
		root.addChild(hand_b);
		trace(hand_b.x); trace(hand_b.y); trace(hand_b.width); trace(hand_b.height);
		
		
		//trace
		//trace("Test");
	}
	
	//main constructor function
	static function main()
	{
		//create new instance of main and add to current (stage)
		var m = new Main(Lib.current);
	}
}